package com.sandau.xt.controller;

import com.sandau.xt.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HelloController {
    @Autowired
    HelloService helloService;

    @RequestMapping("hello")
    public String hello(Model model){
        String name = helloService.hello();
        model.addAttribute("name",name);
        return "123";

    }
}
